#!/bin/bash
clv=2
for i in `seq 4 1 35`; do
    file=tmp.txt
    echo -n $i 
    echo -n "  :  "
    python ./generate_matrix.py ${i}0
    sudo LD_LIBRARY_PATH=/home/tgm/.local/lib /home/tgm/.local/bin/likwid-perfctr -C 0 -g L${clv}CACHE -m ./svd 1 $file |  awk '/miss ratio/ {print $6}'
done